<template>
  <div class="wrapper">
    <el-form ref="form" :model="project" label-width="80px" size="small" label-position="left">
      <el-form-item label="groupId:">
        <el-input v-model="project.groupId" placeholder="org.springframework"></el-input>
      </el-form-item>
      <el-form-item label="artifactId:">
        <el-input v-model="project.artifactId" placeholder="spring-core"></el-input>
      </el-form-item>
      <el-form-item label="package:">
        <el-input v-model="project.package" placeholder="org.springframework"></el-input>
      </el-form-item>
      
      <el-form-item>
        <el-button type="primary" @click="onSubmit">立即创建</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      project: {
        name: '',
        groupId: '',
        artifactId: '',
        package: ''
      }
    };
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style lang="less" scoped>
.wrapper {
  width: 400px;
  padding: 20px;
}
</style>>